﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrokerBase.Lib.Policy;

namespace broker.duty.ZY
{
    /// <summary>
    /// 生命附加福康提前给付重大疾病保险
    /// </summary>
    class Class4
    {
        /// <summary>
        /// 重大疾病保险
        /// </summary>
        /// <param name="ppa"></param>
        /// <param name="da"></param>
        public void Calc1(IPolicyPeriodActing ppa, IDutyActing da)
        {
            if (ppa.SchemePeriodActing.InsurantStates.Contains("重疾"))
            {
                da.Value = ppa.Amount;
                ppa.IsCurrentFinish = true;
                ppa.SchemePeriodActing.BasicPolicyPeriodActing.IsCurrentFinish = true;
            }
        }
    }
}
